let http =require('http');
let sever =http.createServer((req,res)=>{
  
    res.setHeader("Content-Type","text/html;charset=utf-8");
    if(req.url=='/favicon.icp'){
            return;
    }else if(req.url=='/'||req.url=='/index/index'){
        res.end('首页');
    }else if(req.url=='/index/login'){
        res.end('登入');
    }else if(req.url=='/index/reg'){
        res.end('注册');
    }else if(req.url=='/goods/info'){
        res.end('产品列表');
    }else if(req.url=='/order/info'){
        res.end('订单列表');
    }else{
        res.end('404 无法打开');
    }
})
sever.listen(81,"www.xue03.com",()=>{ 
    console.log('服务器已建立，域名www.xue03.com已开启');
});
